package com.yytek.common.client.base;

public class MqConfig {
	private String broker;
	private String userName;
	private String password;
	private int timeToWait;
	private boolean cleanSession;
	private boolean automaticReconnect;
	private int keepAliveInterval;
	private String clientId;
	public MqConfig setBroker(String url) {
		this.broker = url;
		return this;
	}

	public MqConfig setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	public MqConfig setPassword(String password) {
		this.password = password;
		return this;
	}
	
	public MqConfig setAutomaticReconnect(boolean automaticReconnect) {
		this.automaticReconnect = automaticReconnect;
		return this;
	}

	public MqConfig setCleanSession(boolean cleanSession) {
		this.cleanSession = cleanSession;
		return this;
	}

	public MqConfig setKeepAliveInterval(int keepAliveInterval) {
		this.keepAliveInterval = keepAliveInterval;
		return this;
	}

	public MqConfig setTimeToWait(int timeToWait) {
		this.timeToWait = timeToWait;
		return this;
	}

	public String getBroker() {
		return broker;
	}

	public String getUserName() {
		return userName;
	}

	public String getPassword() {
		return password;
	}

	public int getTimeToWait() {
		return timeToWait;
	}

	public boolean isCleanSession() {
		return cleanSession;
	}

	public boolean isAutomaticReconnect() {
		return automaticReconnect;
	}

	public int getKeepAliveInterval() {
		return keepAliveInterval;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
	
}
